CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT(Chap02)
FIND_PACKAGE(VTK REQUIRED)

SET(VTK_USE_FILE "D:/wrokspace/VTK-8.2.0/build2017/install")

INCLUDE_DIRECTORIES(${VTK_USE_FILE}/include/vtk-8.2)

#ADD_EXECUTABLE(2.1_RenderCylinder 2.1_RenderCylinder.cpp)
#ADD_EXECUTABLE(2.2_TextureExample 2.2_TextureExample.cpp)
ADD_EXECUTABLE(2.4_vtkPipelineDemo 2.4_vtkPipelineDemo.cpp)

LINK_DIRECTORIES(${VTK_USE_FILE}/lib)
#TARGET_LINK_LIBRARIES(2.1_RenderCylinder ${VTK_LIBRARIES})
#TARGET_LINK_LIBRARIES(2.2_TextureExample ${VTK_LIBRARIES})
TARGET_LINK_LIBRARIES(2.4_vtkPipelineDemo ${VTK_LIBRARIES})